<template>
    <div class="successInfoHint">
        <el-row>
            <el-col :span="20" :offset="1">
                <div class="text_center width30">
                    <div class="el-form-item-span-wrap">
                        <span class="el-form-item-span-label">账户类别:</span>
                        <span class="el-form-item-span">{{CardSuccessInfo.CATEGORY_filter}}</span>
                    </div>
                </div>
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="20" :offset="1">
                <div class="text_center width30">
                    <div class="el-form-item-span-wrap">
                        <span class="el-form-item-span-label">卡号:</span>
                        <span class="el-form-item-span">{{CardSuccessInfo.body.appBody.CARDNBR}}</span>
                    </div>
                </div>
            </el-col>
        </el-row>
        <el-row>
            <slot name="HintBody"></slot>
        </el-row>
        <el-row>
            <el-col :span="20" :offset="1">
                <div class="text_span text_center">{{pageTitle}}交易成功！</div>
            </el-col>
        </el-row>
        <div class="text_center margin_top20">
            <!-- <el-button
                type="primary"
                size="small"
                icon="el-icon-circle-check"
                @click="handleClose"
            >确定</el-button>-->
            <el-button
                type="primary"
                size="small"
                icon="el-icon-circle-close"
                @click.native="handleClose"
            >关闭</el-button>
        </div>
    </div>
</template>

<script>
import { closePage } from '@/utils/Common';

export default {
    name: 'successInfoHint',
    props: {
        //成功数据
        CardSuccessInfo: {
            type: Object,
        },
        // 页面标题文字
        pageTitle: {
            type: String,
            default: '',
        },
    },
    data() {
        return {};
    },

    mounted() {
        console.log('CardSuccessInfo', this.CardSuccessInfo);

    },
    methods: {
        // 点击关闭
        handleClose() {
            closePage(this.$route, this, 1);
        },
    },
};
</script>
<style lang='scss'>
.successInfoHint {
    .text_span {
        margin: 15px 20px;
        font-size: 16px;
    }
    .text_fl {
        margin-bottom: 5px;
    }
}
</style>
